import classNames from "classnames"

export const Icon = ({ type, className, onClick }) => {
  return (
    <svg
      className={classNames("icon", className)}
      aria-hidden="true"
      onClick={onClick}
    >
      <use xlinkHref={`#${type}`}></use>
    </svg>
  )
}
